<template>
	<view class="">
		<uni-section title="我发布的二手物品" type="line">
			<uni-card margin="0" spacing="0">
				我发布的二手物品
			</uni-card>
		</uni-section>
		<uni-section title="我发布的表白墙" type="line">
			<uni-card margin="0" spacing="0">
				我发布的二手物品
			</uni-card>
		</uni-section>
		<uni-section title="我发布的失物招领" type="line">
			<uni-card margin="0" spacing="0">
				我发布的二手物品
			</uni-card>
		</uni-section>
	</view>
</template>

<script>
	import {
		mapState,
		mapActions,
		mapMutations
	} from 'vuex'
	export default {
		name: "uploadManagement",

		computed: {
			...mapState('userModule', ["userInfo", "myUsedGoodsInfos", "myConfessionWallInfos", "myLostFoundInfos"])
		},

		methods: {
			...mapActions('userModule', ["deleteMyUsedGoodsInfos", "deleteMyConfessionWallInfos",
				"deleteMyLostFoundInfos"]),
			...mapMutations('userModule', ["getMyUsedGoodsInfos", "getMyConfessionWallInfos", "getMyLostFoundInfos"])

			// 删除自己上传的二手物品

			// 删除自己上传的表白墙

			// 删除自己上传的失物招领

		},
		
		onPullDownRefresh() {
			
			uni.stopPullDownRefresh()
		},

		onLoad() {
			// 获取自己上传的二手物品
			this.getMyUsedGoodsInfos(this.userInfo.id)

			// 获取自己上传的表白墙
			this.getMyConfessionWallInfos(this.userInfo.id)

			// 获取自己上传的失物招领
			this.getMyLostFoundInfos(this.userInfo.id)

			console.log(this.userInfo.id)
		}
	}
</script>

<style scoped>
.container{
	padding-left: 20px;
}
</style>